import request from '@/utils/request'

// 查询订单对应资源列表
export function listOrderinstance(query) {
  return request({
    url: '/resell/orderinstance/list',
    method: 'get',
    params: query
  })
}

// 查询订单对应资源区域数量
export function listregioncount(query) {
  return request({
    url: '/resell/orderinstance/listregioncount',
    method: 'get',
    params: query
  })
}
// 查询订单对应资源区域数量
export function selectexplist(query) {
  return request({
    url: '/resell/orderinstance/selectexplist',
    method: 'get',
    params: query
  })
}
// 查询云服务器 资源运行监控
export function GetinstanceBatch(query) {
  return request({
    url: '/resell/orderinstance/GetBatch',
    method: 'get',
    params: query
  })
}
// 查询订单对应资源详细
export function getOrderinstance(id) {
  return request({
    url: '/resell/orderinstance/' + id,
    method: 'get'
  })
}

// 新增订单对应资源
export function addOrderinstance(data) {
  return request({
    url: '/resell/orderinstance',
    method: 'post',
    data: data
  })
}

// 修改订单对应资源
export function updateOrderinstance(data) {
  return request({
    url: '/resell/orderinstance',
    method: 'put',
    data: data
  })
}

// 删除订单对应资源
export function delOrderinstance(id) {
  return request({
    url: '/resell/orderinstance/' + id,
    method: 'delete'
  })
}
// ecs开机
export function ecsopen(data) {
  return request({
    url: '/resell/orderinstance/ecsopen',
    method: 'post',
    data: data
  })
}
// ecs关机
export function ecsclose(data) {
  return request({
    url: '/resell/orderinstance/ecsclose',
    method: 'post',
    data: data
  })
}
// ecs关机-强制
export function ecsclosehard(data) {
  return request({
    url: '/resell/orderinstance/ecsclosehard',
    method: 'post',
    data: data
  })
}
// ecs重启
export function ecsrest(data) {
  return request({
    url: '/resell/orderinstance/ecsrest',
    method: 'post',
    data: data
  })
}
// ecs重启-强制
export function ecsresthard(data) {
  return request({
    url: '/resell/orderinstance/ecsresthard',
    method: 'post',
    data: data
  })
}
// 远程桌面
export function todisk(data) {
  return request({
    url: '/resell/orderinstance/todisk',
    method: 'post',
    data: data
  })
}
export function lookmirror(data) {
  return request({
    url: '/resell/orderinstance/lookmirror',
    method: 'post',
    data: data
  })
}
export function updatemirror(data) {
  return request({
    url: '/resell/orderinstance/updatemirror',
    method: 'post',
    data: data
  })
}
// 查询资源安全组列表
export function security(data) {
  return request({
    url: '/resell/orderinstance/security',
    method: 'post',
    data: data
  })
}
// 添加安全组
export function securityadd(data) {
  return request({
    url: '/resell/orderinstance/securityadd',
    method: 'post',
    data: data
  })
}
// 移除安全组
export function securitydel(data) {
  return request({
    url: '/resell/orderinstance/securitydel',
    method: 'post',
    data: data
  })
}
// 添加安全组规则
export function securityrules(data) {
  return request({
    url: '/resell/orderinstance/securityrules',
    method: 'post',
    data: data
  })
}
// 移除安全组规则
export function securityrulesdel(data) {
  return request({
    url: '/resell/orderinstance/securityrulesdel',
    method: 'post',
    data: data
  })
}
// 查询资源硬盘快照列表
export function snapshots(data) {
  return request({
    url: '/resell/orderinstance/snapshots',
    method: 'post',
    data: data
  })
}
// 查询资源硬盘快照-指定id
export function snapshotsid(data) {
  return request({
    url: '/resell/orderinstance/snapshotsid',
    method: 'post',
    data: data
  })
}

// 创建硬盘快照
export function snapdoback(data) {
  return request({
    url: '/resell/orderinstance/snapdoback',
    method: 'post',
    data: data
  })
}
// 查询漏洞信息
export function statistics(data) {
  return request({
    url: '/resell/orderinstance/statistics',
    method: 'post',
    data: data
  })
}
//弱口令列表
export function pswline(data) {
  return request({
    url: '/resell/orderinstance/pswline',
    method: 'post',
    data: data
  })
}
//查询云硬盘
export function getdisk(data) {
  return request({
    url: '/resell/orderinstance/getdisk',
    method: 'post',
    data: data
  })
}
//cbr存储库列表
export function vaultslist(data) {
  return request({
    url: '/resell/orderinstance/vaultslist',
    method: 'post',
    data: data
  })
}

//cbr存储库绑定电脑
export function vaultsbinding(data) {
  return request({
    url: '/resell/orderinstance/vaultsbinding',
    method: 'post',
    data: data
  })
}
//cbr存储库解绑定
export function vaultsrelief(data) {
  return request({
    url: '/resell/orderinstance/vaultsrelief',
    method: 'post',
    data: data
  })
}
//云硬盘存储库列表
export function vaultsdlist(data) {
  return request({
    url: '/resell/orderinstance/vaultsdlist',
    method: 'post',
    data: data
  })
}
//云硬盘 存储库绑定硬盘
export function vaultsdbinding(data) {
  return request({
    url: '/resell/orderinstance/vaultsdbinding',
    method: 'post',
    data: data
  })
}
//云硬盘 存储库解绑定
export function vaultsdrelief(data) {
  return request({
    url: '/resell/orderinstance/vaultsdrelief',
    method: 'post',
    data: data
  })
}
//cbr备份列表
export function cbrbacklist(data) {
  return request({
    url: '/resell/orderinstance/cbrbacklist',
    method: 'post',
    data: data
  })
}
//云硬盘备份列表
export function cbrbackdlist(data) {
  return request({
    url: '/resell/orderinstance/cbrbackdlist',
    method: 'post',
    data: data
  })
}
//云硬盘执行备份
export function cbrdoback(data) {
  return request({
    url: '/resell/orderinstance/cbrdoback',
    method: 'post',
    data: data
  })
}
//安全基线
export function baseline(data) {
  return request({
    url: '/resell/orderinstance/baseline',
    method: 'post',
    data: data
  })
}
//漏洞列表
export function vulnerability(data) {
  return request({
    url: '/resell/orderinstance/vulnerability',
    method: 'post',
    data: data
  })
}
//告警列表
export function events(data) {
  return request({
    url: '/resell/orderinstance/events',
    method: 'post',
    data: data
  })
}
//这个客户下面的主机安全数量信息（漏洞、警告等）-首页
export function listsecurecount(query) {
  return request({
    url: '/resell/orderinstance/listsecurecount',
    method: 'get',
    params: query
  })
}
//这个客户下面的主机漏洞-首页
export function listsecureshow(query) {
  return request({
    url: '/resell/orderinstance/listsecureshow',
    method: 'get',
    params: query
  })
}

export function rdslist(query) {
  return request({
    url: '/resell/orderinstance/rdslist',
    method: 'get',
    params: query
  })
}

export function rdslistcount(query) {
  return request({
    url: '/resell/orderinstance/rdslistcount',
    method: 'get',
    params: query
  })
}
